<?php
/*
+--------------------------------------------------------------------------
|   WeCenter [#RELEASE_VERSION#]
|   ========================================
|   by WeCenter Software
|   © 2011 - 2014 WeCenter. All Rights Reserved
|   http://www.wecenter.com
|   ========================================
|   Support: WeCenter@qq.com
|
+---------------------------------------------------------------------------
*/


if (!defined('IN_ANWSION')) {
    die;
}

class visitor_class extends AWS_MODEL
{

    public function get_user_visitor($user_id, $limit = 20)
    {
        if (!$user_visitor = $this->fetch_all('user_visitor', 'v_uid = ' . intval($user_id), 'create_time DESC', $limit)) {
            return false;
        }

        foreach ($user_visitor AS $key => $val) {
            $visitor_uids[$val['uid']] = $val['uid'];
        }

        return $this->model('account')->get_user_info_by_uids($visitor_uids, true);

    }

}